package com.young.core.dao;

import com.young.core.domain.TriggerDO;

import java.util.Collection;

/**
 * @description：
 * @author: yangyahui01
 * @date: 11/28/24 5:11 PM
 */
public interface TriggerDao {

    void insert(TriggerDO trigger);

    Collection<TriggerDO> getAll(String ip);

    void delete(int id);

    void delete(Collection<Integer> ids);

    /**
     *Converter
     * @param ttl
     * @return
     */
    Collection<TriggerDO> getExpired(int ttl);

    int update(TriggerDO trigger);
}
